<?phpuse Illuminate\Database\Eloquent\Model;class dispatchautosendModel extends Model{	protected $table 		= 'dispatch_autosend';	public	  $primaryKey	= 'id';    protected function serializeDate($date)    {        return $date->format('Y-m-d H:i:s');    }    /**     * 处理自动发货内容     */    public static function getParamsContent($content) {        $contents = json_decode($content, true);        $contents = $contents ? : [];        $newContents = [];        foreach ($contents as $key => $content) {            foreach ($content as $k => $v) {                $newContents[] = [                    'name' => $k,                    'value' => $v                ];            }        }        return json_encode($newContents);    }}